Partial Differential Equations Tutorial Sheet, #12

Course Notes Chapter

Learning Targets



Additional Resources

Tutorials



Problem sheet

Skill Building Questions

Problem 1.

Which of the following are solutions to Laplace’s equation, 2f(x)=0? For those that are not, can you come up with a differential equation involving the Laplacian, 2, that f(x) is a solution of?

(a) eysinx

Toggle answer

Yes, 2f(x)=0
The Laplacian operator is defined as:
2=2x2+2y2+2z2
2f(x)=2x2eysinx+2y2eysinx
=xeycosxyeysinx
=eysinxeysinx=0
NB This is an example for this kind problem in case you get confused by these short answers :)

(b) sin(x+y2)sin(xy2)

Toggle answer

No, but 2f(x)+f=0

(c) f(x+iy)

Toggle answer

Yes, 2f(x+iy)=0, this becomes a useful result in complex analysis.

(d) 4arctan(y/x)+log(x2+y2)

Toggle answer

Yes, 2f(x)=0

(e) x+yz

Toggle answer

No, but 2f(x)=2f/z2 would work.

Problem 2.

Show that the function u(x,y)=ln(1+xy2) satisfies the partial differential equation:

22ux2+y32uyx=0

Toggle answer

ux=y21+xy2 ;   2ux2=y2(1+xy2)2.y2=y4(1+xy2)2
2uyx=y(ux)=2y(1+xy2)y2(2xy)(1+xy2)2=2y+2xy32xy3(1+xy2)2=2y(1+xy2)2
22ux2+y32uyx=2y4(1+xy2)2+2y4(1+xy2)2=0

Separation of Variables 0 – 1D Wave Equation

Go through the process of solving the general soultion to the 1D Wave equation, As we did in the lecture notes.

2f(x,t)t2=c22f(x,t)x2

Toggle answer

This is solved with more detail in the lecture notes. We'll do a different solution here and solve with complex exponentials. First assume solution, f(x,t)=X(x)T(t) Next plug into the ODE, X(x)T(t)=c2X(x)T(t) Divide through by X(x)T(t) X(x)T(t)X(x)T(t)=c2X(x)T(t)X(x)T(t)T(t)T(t)=c2X(x)X(x) Assign constants to each group, I've chosen negative second power constants. [See why.](/module-resources/notes/14-partial-differential-equations#better-constants) T(t)T(t)ω2=c2X(x)X(x)k2 Giving, T(t)=ω2T(t)X(x)=k2X(x)ω2=c2k2 Let's solve the ODEs, T(t)=Aeiωt+BeiωtX(x)=Ceikx+Deikx Which we can then combine to, f(x,t)=X(x)T(t)=[Aeiωt+Beiωt][Ceikx+Deikx] At this point we are done, but we could also insert our dispersion relation, to remove one of the constants. f(x,t)=[Aeikct+Beikct][Ceikx+Deikx] Which is the general solution.

Once you have done this, you can return the question later and try to solve it using different trial solutions (Sines and cosines, exponentials, hyperbolic functions) and different choice of constants (powers, sign). See how they each behave and how the choices interact with each other.


Separation of Variables 1 – Choice of constants

In the Better Constants section of the notes, We looked at the 1D wave equation,

2f(x,t)t2=c22f(x,t)x2

and chose ODE constants, ω2 and k2, to solve the PDE.

You were asked to see what happened if instead we used positive squared coefficients, i.e.,

T(t)=+γ2T(t)X(x)=+κ2X(x)

Show, by using a separable solution f(x,t)=X(x)T(t) on the PDE, that we can return the ODEs above, and that their relationship is,

γ2=c2κ2

Then show by solving the ODEs, that exponentially growing and decaying solutions can be produced. Write the general solution to the PDE in this form.

Toggle answer

Let's start with the usual assumtion of a separable solution, f(x,t)=X(x)T(t) Inserting into our PDE, dividing through, we get, T(t)T(t)=c2X(x)X(x) Now, let's use different positive squared constants, gamma and kappa. T(t)T(t)γ2=c2X(x)X(x)κ2 Which we can extract two ODEs and a dispersion relation. T(t)=γ2T(t)X(x)=κ2X(x)γ2=c2κ2 With the dispersion relation being what we were trying to prove. Let's look at the temporal ODE, T(t)=γ2T(t) This is asking the question, what function when differentiated twice, gives itself times a constant? The hyperbolic trig functions answer this question – try this yourself. But so do growing and decaying exponentials. Let's use T(t)=eλt as our trial solution. The second derivative is, 2t2eλt=λ2eλt And so, λ2eλt=γ2eλt hence, λ2=γ2λ=±γ So our temporal ODE solution is, T(t)=Aeγt+Beγt The same reasoning applies to the spatial ODE, X(x)=Ceκx+Deκx For a full solution, f(x,t)=X(x)T(t)=[Ceκx+Deκx][Aeγt+Beγt] Let's insert the dispersion relation, f(x,t)=[Ceκx+Deκx][Aeκct+Beκct] These solutions tell us that an initial condition that looks like exponential functions will either grow or decay away at future times. (Depending on the initial time derivative) Do notice, that we indeed return the usual oscillatory solutions for complex or imaginary values of κ or γ.

Separation of Variables 2 – 2D Diffusion Equation

In the notes, we highlighted the 2D Diffusion Equation as an example of using separation of variables.

u(x,y,t)t=α2u(x,y,t)

Find the general solution, u(x,y,t), to this PDE.

Toggle answer

First, let's write the Laplacian out in full, tu(x,y,t)=α2x2u(x,y,t)+α2y2u(x,y,t) Next, assume a separated solution of u(x,y,t)=X(x)Y(y)T(t) Then input into the PDE, X(x)Y(y)T(t)=αX(x)Y(y)T(t)+αX(x)Y(y)T(t)T(t)T(t)=αX(x)X(x)+αY(y)Y(y) Each term here can be assigned a constant, For the T(t) term, let's call this γ, i.e., T(t)=γT(t) I've chosen a negative sign in front of the constant here, this is optional, but will eventually mean exponentially decaying solutions for positive γ values, rather than unphysical growing ones. For the X(x) and Y(y) constants, let's use, X(x)=kx2X(x)Y(y)=ky2Y(y) Here I always pick the power of the constant to be as big as the highest order of derivative. In this case, I pick a negative sign too, this will match with the γ term and ensure all positive signs in the dispersion relation, which comes out as, γ=α(kx2+ky2). Next we solve the ODEs, T(t)=γT(t)T(t)eγt And for the spatial parts, we have a choice to solve in terms of sinusoids or complex exponentials, I'll do complex exponentials here. X(x)=kx2X(x)X(x)eikxxY(y)=ky2Y(y)Y(y)eikyy The complex exponential solutions are nicer when there's a lot of terms, e.g. in 2d, because the positive and negative solution can be captured with a single exponential term, rather than both a sin and a cos. The general solution then is the product of all the separated solutions, u(x,y,t)=Aeikxx+ikyyγt with, γ=α(kx2+ky2) As the final answer.


Exam Style Question

Problem 3.

Vibrations on a guitar string can be modelled by the wave equation, 2ut2τ2uρx2=0
where u(x,t) is the displacement of the string from its equilibrium position, τ is its tension, and ρ is the linear density of the string. This is a clone of the 19-20 progress test.

(a) Use separation of variables to produce linear ODEs for the separated parts. State any relationship between constants you define.

Toggle answer

Using 𝑢(x,𝑡)=𝑋(x)𝑇(𝑡), the PDE becomes

X(x)T(t)τρX(x)T(t)=0

And therefore T(t)T(t)τρX(x)X(x)=0

Extract ODEs, T(t)T(t)=ω2,X(x)X(x)=k2

Then,T(t)=ω2T(t),X(x)=k2X(x), with ω2=τρk2

(b) Solve the ODEs in terms of sinusoidal solutions.

Toggle answer

T(t)=cosωt,sinωt and

X(x)=coskx,sinkx

Accept complex exponentials, accept equivalent correct forms, accept sum with coefficients, A cos + B sin etc.

(c) The string has a length L, and is fixed at both ends, such that 𝑢(x=0,𝑡)=𝑢(x=L,𝑡)=0. How does this constrain your solutions? Write a general solution of the PDE, 𝑢(x,𝑡), that is subject to these constraints.

Toggle answer

Fixed at x=0 constrains to sinkx spatial solutions only.

Fixed at x=L constrains to k=nπL.

u(x,t)=(Acosωt+Bsinωt)sinnπxL

(d) Write an expression for the fundamental (lowest) frequency allowed by the string.

Toggle answer

Using ω2=τρk2 and k=nπL, then ω=τρnπL

Fundamental frequency, set n=1.

ω=τρπL

(e) If a guitar has a neck length of 0.65 m, and a string has linear density 5 g/m, what tension does the string need to be to sound an A note at a frequency ω=2π×110 Hz?

Toggle answer

Rearrange for \tau.

τ=L2ω2π2ρ

Insert given values, τ=(0.65m)2(2π×110Hz)2π20.005kgm

τ=102N


Extension Questions

Problem 4.

Prove for the 1D diffusion equation, f(x,t)t=α2f(x,t)x2, that the total area under the curve f(x,t) does not change over time. (You may assume that f(x,t)x0 for x±).

Toggle answer

The area under the curve is calculated by integrating f(x,t) over all x. Integrating both sides of the PDE, dxf(x,t)t=dxαf(x,t)x We can swap the order of differentiation and integration on the LHS and directly integrate the expression on the RHS, tdxf(x,t)=αf(x,t)x|xαf(x,t)x|x The x derivatives go to zero at infinity tdxf(x,t)=0 Therefore the area under the concentration curve does not change in time. The area will be proportional to the numbers of ions or molecules etc. the total number of these will stay the same as they diffuse within the space. The area taken over a region of the space will be proportional to the number of particles in that region.

Problem 5.

Solve the 3D wave equation by separation of variables to show, u(x,t)=exp(ikxiωt), is a solution. With k=(kx,ky,kz)T What is the resulting relationship between k and ω?

n2c22u(x,t)t22u(x,t)=0

Toggle answer

NB: Coordinate vector x=(x,y,z) and, u(x)=(u(x),v(x),w(x))T is a vector field.

Start with a separation of variables solution, let u(x,t)=X(x)Y(y)Z(z)T(t). then, n2c2T(t)X(x)Y(y)Z(z)X(x)Y(y)Z(z)T(t)Y(y)X(x)Z(z)T(t))Z(z)X(x)Y(y)T(t)=0 n2c2T(t)T(t)X(x)X(x)Y(y)Y(y)Z(z)Z(z)=0 There is some freedom of choice as to how you define the constants here. In order to match to the test solution, u(x,t)=exp(ikxiωt), the most straightforward choice is, T(t)T(t)=ω2X(x)X(x)=kx2Y(y)Y(y)=ky2Z(z)Z(z)=kz2 . But here we'll solve as if we assumed arbitrary constants instead, T(t)T(t)=aX(x)X(x)=bY(y)Y(y)=cZ(z)Z(z)=d . With n2c2abcd=0. Solving the ODEs, we get, T(t)=A+e+at+AeatX(x)=B+e+bx+Bebt And equivalently for Y(y) and Z(z). To match with our test solution, u(x,t)=exp(ikxiωt), We'll keep the negative exponential from the T(t) function, and the positive exponentials from the spatial functions. This allow us to build the solution, u(x,t)exp(bx+cy+dzat), Matching coefficients requires,} a=iωb=ikxc=ikyd=ikz. Which gives, u(x,t)exp(ikxx+ikyy+ikzziωt), or exp(ikxiωt). and a dispersion relations,} n2c2ω2=kx2+ky2+kz2

Problem 6.

Show that a Gaussian function, f(x,t)=1σ(t)2πexp(x22σ(t)2) , solves the 1D diffusion equation, on the condition that σ(t)=σ(0)2+2αt.

Toggle answer

This is a show-that question, so you need only show it satisfies the equation, rather than proving it outright (which is done in the course notes). This is an ideal opportunity for the chain rule, rather than directly inserting the form of σ(t). First calculate the derivatives of the diffusion equation: f(x,t)t=12π[1σ(t)2+x2σ(t)4]σ(t)exp(x22σ(t)2)f(x,t)x=12π[xσ(t)3]exp(x22σ(t)2)2f(x,t)x2=12π[1σ(t)3+x2σ(t)5]exp(x22σ(t)2), and then, σ(t)=ασ(0)2+2αt=ασ(t), Inserting into the diffusion equation, f(x,t)t=α2f(x,t)x212π[1σ(t)2+x2σ(t)4]σ(t)exp(x22σ(t)2)=α12π[1σ(t)3+x2σ(t)5]exp(x22σ(t)2) Divide common terms, [1σ(t)2+x2σ(t)4]σ(t)=α[1σ(t)3+x2σ(t)5] Substitute for σ(t), [1σ(t)2+x2σ(t)4]ασ(t)=α[1σ(t)3+x2σ(t)5] LHS is equal RHS, so this is proven.

Problem 7.

For an initial concentration, f(x,0)=1σ0exp((xx0)22σ02), governed by the diffusion equation, calculate the concentration at x=0μm and t=10s, for x0=5μm, σ0=1μm, and α=2μm2s1. (Use the solution given in Q6 to help)

Toggle answer

First set up a solution to the diffusion equation such that it matches the initial condition. i.e. f(x,t)=1σ02+2αtexp((xx0)22σ02+4αt). Then substitute in all constant and variable values, f(x=0,t=10s)=1(1μm)2+2×2μm2s110sexp((05μm)22×(1μm)2+4×2μm2s110s) Which reduces to, f(x=0,t=10s)=141μm2exp(25μm282μm2)0.12μm1



Answers



For Printing



Revision Questions

The questions included are optional, but here if you want some extra practice.



Next week, Finite Methods!